CODE_NOT_LOGINED = 29
CODE_TOKEN_EXPIRE = 30
CODE_LOGIN_FAIL = 31
CODE_OK = 0
CODE_DELETE_FAIL = 1
CODE_UPDATE_FAIL = 2
CODE_INSERT_FAIL = 3
CODE_SYSTEM_ERROR = 500
CODE_ROLE_ERROR = 111
CODE_NOT_LOGIN = 112
CODE_USER_LOGIN_FAIL = 113
CODE_USER_EXIST = 114
CODE_USER_NOT_EXIST = 115
CODE_USER_OLD_PASS_ERROR = 116
MESSAGE_CODE_MAP = {
    CODE_OK: "成功",
    CODE_NOT_LOGINED: "用户未登录",
    CODE_LOGIN_FAIL: "登录失败，检查用户或密码是否正确",
    CODE_TOKEN_EXPIRE: "用户TOKEN已过期",
    CODE_SYSTEM_ERROR: "系统错误",
    CODE_ROLE_ERROR: "没有后台权限",
    CODE_DELETE_FAIL: "删除失败",
    CODE_UPDATE_FAIL: "修改失败",
    CODE_INSERT_FAIL: "添加失败",
    CODE_NOT_LOGIN: "您还未登录，请先登陆后再进行评论",
    CODE_USER_LOGIN_FAIL: "登录失败，检查用户或密码是否正确",
    CODE_USER_EXIST: "该手机号已被注册",
    CODE_USER_NOT_EXIST: "用户不存在",
    CODE_USER_OLD_PASS_ERROR: "原密码错误"
}
